using UnityEngine;

public class CameraZoneEnabler : MonoBehaviour
{
	public GameObject zoneLeft;

	public GameObject zoneRight;

	public static CameraZoneEnabler instance;

	public CameraZone leftCameraZone;

	public CameraZone rightCameraZone;

	private void Awake()
	{
		instance = this;
	}

	private void OnEnable()
	{
		zoneLeft.SetActive(!settings.LeftHandControlEnable);
		zoneRight.SetActive(settings.LeftHandControlEnable);
	}

	public static CameraZone GetCameraZone()
	{
		if (settings.LeftHandControlEnable)
		{
			return instance.rightCameraZone;
		}
		return instance.leftCameraZone;
	}
}
